﻿<%@ Page Language="C#" Debug="true" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    Title="用户权限分配" CodeFile="RolesManage.aspx.cs" Inherits="ProductionAnalysis.Web.RolesMamage_RolesMamage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                &nbsp;
                <br />
                <asp:Label ID="Label5" runat="server" Text="请先选择你要操作的角色与用户："></asp:Label>
                <br />
                <br />
                <table style="width: 100%;">
                    <tr>
                        <td style="vertical-align: top; width: 20%; height: 406px">
                            <asp:GridView ID="GridView2" runat="server" CellPadding="3" GridLines="None" BackColor="White"
                                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" Width="100%">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <Columns>
                                    <asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" />
                                </Columns>
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                            </asp:GridView>
                        </td>
                        <td style="vertical-align: top; width: 80%; height: 406px">
                            <p style="text-align: center;">
                                输入工号快速查找用户：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="Button5" runat="server" Text="查  询" OnClick="Button5_Click" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="Button6" runat="server" Text="返回所有用户列表" 
                                    OnClick="Button6_Click" />
                            </p>
                            <asp:GridView ID="GridView1" runat="server" CellPadding="3" GridLines="None" BackColor="White"
                                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" AutoGenerateColumns="False"
                                AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" Width="100%">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                                <Columns>
                                    <asp:CommandField ButtonType="Button" HeaderText="选择用户" ShowHeader="True" ShowSelectButton="True" />
                                    <asp:BoundField DataField="UserName" HeaderText="工号" />
                                    <asp:BoundField DataField="Email" HeaderText="姓名" />
                                    <asp:BoundField DataField="LastLoginDate" HeaderText="最后登录时间" />
                                    <asp:BoundField DataField="CreationDate" HeaderText="帐号创建时间" />
                                    <asp:CheckBoxField DataField="IsOnline" HeaderText="是否在线" />
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
                &nbsp;<table style="width: 100%;">
                    <tr>
                        <td style="width: 25%; height: 34px">
                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="为选中用户配置选中角色"
                                Height="28px" />
                        </td>
                        <td style="width: 25%; height: 34px">
                            <asp:Button ID="Button2" runat="server" Text="删除选中角色中选中用户" OnClick="Button2_Click"
                                Height="28px" />
                        </td>
                        <td style="width: 25%; height: 34px">
                            <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="查看选中用户所属角色"
                                Height="28px" />
                        </td>
                        <td style="width: 25%; height: 34px">
                            <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="查看选中角色中所有用户"
                                Height="28px" />
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top; width: 25%">
                            <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                        </td>
                        <td style="vertical-align: top; width: 25%">
                            <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                        </td>
                        <td style="vertical-align: top; width: 25%">
                            <asp:GridView ID="GridView3" runat="server" CellPadding="3" GridLines="None" Visible="False"
                                BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1"
                                EmptyDataText="没有相关数据">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                            </asp:GridView>
                        </td>
                        <td style="vertical-align: top; width: 25%">
                            <asp:GridView ID="GridView4" runat="server" CellPadding="3" GridLines="None" Visible="False"
                                BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1"
                                EmptyDataText="没有相关数据" AllowPaging="True" OnPageIndexChanging="GridView4_PageIndexChanging">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 25%">
                        </td>
                        <td style="width: 25%">
                        </td>
                        <td style="width: 25%">
                            <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                        </td>
                        <td style="width: 25%">
                            <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
